def __init__(self,p0,p1, freq=1024, duty=0):
    self.p0 = Pin(p0,'w',value=0)
    try:
        self.p0.as_pwm(freq=freq, duty=0)
    except:
        pdb(p0,'no pwm')

    self.p1 = Pin(p1,'w',value=0)
    try:
        self.p1.as_pwm(freq=freq, duty=0)
    except:
        pdb(p1,'no pwm')
